package com.xingchen.feima.api.client;

import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@FeignClient("feima-oss")
public interface OssClient {
    @PostMapping(value = "/oss/file/upload", consumes = "multipart/form-data")
    Map<String,String> upload(
        @ApiParam(name = "file", value = "文件", required = true)
        @RequestPart("file") MultipartFile file);
}
